Integrand size = 26, antiderivative size = 87 \[ \int \frac {x^2 (1+a x)}{\sqrt {a x} \sqrt {1-a x}} \, dx=-\frac {11 \sqrt {a x} \sqrt {1-a x}}{8 a^3}-\frac {11 (a x)^{3/2} \sqrt {1-a x}}{12 a^3}-\frac {(a x)^{5/2} \sqrt {1-a x}}{3 a^3}-\frac {11 \arcsin (1-2 a x)}{16 a^3} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {16, 81, 52, 55, 633, 222} \[ \int \frac {x^2 (1+a x)}{\sqrt {a x} \sqrt {1-a x}} \, dx=-\frac {11 \arcsin (1-2 a x)}{16 a^3}-\frac {\sqrt {1-a x} (a x)^{5/2}}{3 a^3}-\frac {11 \sqrt {1-a x} (a x)^{3/2}}{12 a^3}-\frac {11 \sqrt {1-a x} \sqrt {a x}}{8 a^3} \]
[In]
[Out]
Rule 16
Rule 52
Rule 55
Rule 81
Rule 222
Rule 633
Rubi steps \begin{align*} \text {integral}& = \frac {\int \frac {(a x)^{3/2} (1+a x)}{\sqrt {1-a x}} \, dx}{a^2} \\ & = -\frac {(a x)^{5/2} \sqrt {1-a x}}{3 a^3}+\frac {11 \int \frac {(a x)^{3/2}}{\sqrt {1-a x}} \, dx}{6 a^2} \\ & = -\frac {11 (a x)^{3/2} \sqrt {1-a x}}{12 a^3}-\frac {(a x)^{5/2} \sqrt {1-a x}}{3 a^3}+\frac {11 \int \frac {\sqrt {a x}}{\sqrt {1-a x}} \, dx}{8 a^2} \\ & = -\frac {11 \sqrt {a x} \sqrt {1-a x}}{8 a^3}-\frac {11 (a x)^{3/2} \sqrt {1-a x}}{12 a^3}-\frac {(a x)^{5/2} \sqrt {1-a x}}{3 a^3}+\frac {11 \int \frac {1}{\sqrt {a x} \sqrt {1-a x}} \, dx}{16 a^2} \\ & = -\frac {11 \sqrt {a x} \sqrt {1-a x}}{8 a^3}-\frac {11 (a x)^{3/2} \sqrt {1-a x}}{12 a^3}-\frac {(a x)^{5/2} \sqrt {1-a x}}{3 a^3}+\frac {11 \int \frac {1}{\sqrt {a x-a^2 x^2}} \, dx}{16 a^2} \\ & = -\frac {11 \sqrt {a x} \sqrt {1-a x}}{8 a^3}-\frac {11 (a x)^{3/2} \sqrt {1-a x}}{12 a^3}-\frac {(a x)^{5/2} \sqrt {1-a x}}{3 a^3}-\frac {11 \text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a^2}}} \, dx,x,a-2 a^2 x\right )}{16 a^4} \\ & = -\frac {11 \sqrt {a x} \sqrt {1-a x}}{8 a^3}-\frac {11 (a x)^{3/2} \sqrt {1-a x}}{12 a^3}-\frac {(a x)^{5/2} \sqrt {1-a x}}{3 a^3}-\frac {11 \sin ^{-1}(1-2 a x)}{16 a^3} \\ \end{align*}
Time = 0.23 (sec) , antiderivative size = 95, normalized size of antiderivative = 1.09 \[ \int \frac {x^2 (1+a x)}{\sqrt {a x} \sqrt {1-a x}} \, dx=\frac {\sqrt {a} x \left (-33+11 a x+14 a^2 x^2+8 a^3 x^3\right )+66 \sqrt {x} \sqrt {1-a x} \arctan \left (\frac {\sqrt {a} \sqrt {x}}{-1+\sqrt {1-a x}}\right )}{24 a^{5/2} \sqrt {-a x (-1+a x)}} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 1.56 (sec) , antiderivative size = 111, normalized size of antiderivative = 1.28
method | result | size |
default | \(-\frac {\sqrt {-a x +1}\, x \left (16 \,\operatorname {csgn}\left (a \right ) x^{2} a^{2} \sqrt {-x \left (a x -1\right ) a}+44 \,\operatorname {csgn}\left (a \right ) \sqrt {-x \left (a x -1\right ) a}\, a x +66 \,\operatorname {csgn}\left (a \right ) \sqrt {-x \left (a x -1\right ) a}-33 \arctan \left (\frac {\operatorname {csgn}\left (a \right ) \left (2 a x -1\right )}{2 \sqrt {-x \left (a x -1\right ) a}}\right )\right ) \operatorname {csgn}\left (a \right )}{48 a^{2} \sqrt {a x}\, \sqrt {-x \left (a x -1\right ) a}}\) | \(111\) |
risch | \(\frac {\left (8 a^{2} x^{2}+22 a x +33\right ) x \left (a x -1\right ) \sqrt {a x \left (-a x +1\right )}}{24 a^{2} \sqrt {-x \left (a x -1\right ) a}\, \sqrt {a x}\, \sqrt {-a x +1}}+\frac {11 \arctan \left (\frac {\sqrt {a^{2}}\, \left (x -\frac {1}{2 a}\right )}{\sqrt {-a^{2} x^{2}+a x}}\right ) \sqrt {a x \left (-a x +1\right )}}{16 a^{2} \sqrt {a^{2}}\, \sqrt {a x}\, \sqrt {-a x +1}}\) | \(124\) |
meijerg | \(-\frac {\sqrt {x}\, \left (-\frac {\sqrt {\pi }\, \sqrt {x}\, \left (-a \right )^{\frac {7}{2}} \left (56 a^{2} x^{2}+70 a x +105\right ) \sqrt {-a x +1}}{168 a^{3}}+\frac {5 \sqrt {\pi }\, \left (-a \right )^{\frac {7}{2}} \arcsin \left (\sqrt {a}\, \sqrt {x}\right )}{8 a^{\frac {7}{2}}}\right )}{\left (-a \right )^{\frac {5}{2}} \sqrt {a x}\, \sqrt {\pi }}-\frac {\sqrt {x}\, \left (-\frac {\sqrt {\pi }\, \sqrt {x}\, \left (-a \right )^{\frac {5}{2}} \left (10 a x +15\right ) \sqrt {-a x +1}}{20 a^{2}}+\frac {3 \sqrt {\pi }\, \left (-a \right )^{\frac {5}{2}} \arcsin \left (\sqrt {a}\, \sqrt {x}\right )}{4 a^{\frac {5}{2}}}\right )}{\left (-a \right )^{\frac {3}{2}} \sqrt {a x}\, \sqrt {\pi }\, a}\) | \(153\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 57, normalized size of antiderivative = 0.66 \[ \int \frac {x^2 (1+a x)}{\sqrt {a x} \sqrt {1-a x}} \, dx=-\frac {{\left (8 \, a^{2} x^{2} + 22 \, a x + 33\right )} \sqrt {a x} \sqrt {-a x + 1} + 33 \, \arctan \left (\frac {\sqrt {a x} \sqrt {-a x + 1}}{a x}\right )}{24 \, a^{3}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 10.16 (sec) , antiderivative size = 393, normalized size of antiderivative = 4.52 \[ \int \frac {x^2 (1+a x)}{\sqrt {a x} \sqrt {1-a x}} \, dx=a \left (\begin {cases} - \frac {5 i \operatorname {acosh}{\left (\sqrt {a} \sqrt {x} \right )}}{8 a^{4}} - \frac {i x^{\frac {7}{2}}}{3 \sqrt {a} \sqrt {a x - 1}} - \frac {i x^{\frac {5}{2}}}{12 a^{\frac {3}{2}} \sqrt {a x - 1}} - \frac {5 i x^{\frac {3}{2}}}{24 a^{\frac {5}{2}} \sqrt {a x - 1}} + \frac {5 i \sqrt {x}}{8 a^{\frac {7}{2}} \sqrt {a x - 1}} & \text {for}\: \left |{a x}\right | > 1 \\\frac {5 \operatorname {asin}{\left (\sqrt {a} \sqrt {x} \right )}}{8 a^{4}} + \frac {x^{\frac {7}{2}}}{3 \sqrt {a} \sqrt {- a x + 1}} + \frac {x^{\frac {5}{2}}}{12 a^{\frac {3}{2}} \sqrt {- a x + 1}} + \frac {5 x^{\frac {3}{2}}}{24 a^{\frac {5}{2}} \sqrt {- a x + 1}} - \frac {5 \sqrt {x}}{8 a^{\frac {7}{2}} \sqrt {- a x + 1}} & \text {otherwise} \end {cases}\right ) + \begin {cases} - \frac {3 i \operatorname {acosh}{\left (\sqrt {a} \sqrt {x} \right )}}{4 a^{3}} - \frac {i x^{\frac {5}{2}}}{2 \sqrt {a} \sqrt {a x - 1}} - \frac {i x^{\frac {3}{2}}}{4 a^{\frac {3}{2}} \sqrt {a x - 1}} + \frac {3 i \sqrt {x}}{4 a^{\frac {5}{2}} \sqrt {a x - 1}} & \text {for}\: \left |{a x}\right | > 1 \\\frac {3 \operatorname {asin}{\left (\sqrt {a} \sqrt {x} \right )}}{4 a^{3}} + \frac {x^{\frac {5}{2}}}{2 \sqrt {a} \sqrt {- a x + 1}} + \frac {x^{\frac {3}{2}}}{4 a^{\frac {3}{2}} \sqrt {- a x + 1}} - \frac {3 \sqrt {x}}{4 a^{\frac {5}{2}} \sqrt {- a x + 1}} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 83, normalized size of antiderivative = 0.95 \[ \int \frac {x^2 (1+a x)}{\sqrt {a x} \sqrt {1-a x}} \, dx=-\frac {\sqrt {-a^{2} x^{2} + a x} x^{2}}{3 \, a} - \frac {11 \, \sqrt {-a^{2} x^{2} + a x} x}{12 \, a^{2}} - \frac {11 \, \arcsin \left (-\frac {2 \, a^{2} x - a}{a}\right )}{16 \, a^{3}} - \frac {11 \, \sqrt {-a^{2} x^{2} + a x}}{8 \, a^{3}} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.46 \[ \int \frac {x^2 (1+a x)}{\sqrt {a x} \sqrt {1-a x}} \, dx=-\frac {{\left (2 \, {\left (4 \, a x + 11\right )} a x + 33\right )} \sqrt {a x} \sqrt {-a x + 1} - 33 \, \arcsin \left (\sqrt {a x}\right )}{24 \, a^{3}} \]
[In]
[Out]
Time = 6.39 (sec) , antiderivative size = 269, normalized size of antiderivative = 3.09 \[ \int \frac {x^2 (1+a x)}{\sqrt {a x} \sqrt {1-a x}} \, dx=\frac {11\,\mathrm {atan}\left (\frac {\sqrt {a\,x}}{\sqrt {1-a\,x}-1}\right )}{4\,a^3}-\frac {\frac {5\,\sqrt {a\,x}}{4\,\left (\sqrt {1-a\,x}-1\right )}+\frac {85\,{\left (a\,x\right )}^{3/2}}{12\,{\left (\sqrt {1-a\,x}-1\right )}^3}+\frac {33\,{\left (a\,x\right )}^{5/2}}{2\,{\left (\sqrt {1-a\,x}-1\right )}^5}-\frac {33\,{\left (a\,x\right )}^{7/2}}{2\,{\left (\sqrt {1-a\,x}-1\right )}^7}-\frac {85\,{\left (a\,x\right )}^{9/2}}{12\,{\left (\sqrt {1-a\,x}-1\right )}^9}-\frac {5\,{\left (a\,x\right )}^{11/2}}{4\,{\left (\sqrt {1-a\,x}-1\right )}^{11}}}{a^3\,{\left (\frac {a\,x}{{\left (\sqrt {1-a\,x}-1\right )}^2}+1\right )}^6}-\frac {\frac {3\,\sqrt {a\,x}}{2\,\left (\sqrt {1-a\,x}-1\right )}+\frac {11\,{\left (a\,x\right )}^{3/2}}{2\,{\left (\sqrt {1-a\,x}-1\right )}^3}-\frac {11\,{\left (a\,x\right )}^{5/2}}{2\,{\left (\sqrt {1-a\,x}-1\right )}^5}-\frac {3\,{\left (a\,x\right )}^{7/2}}{2\,{\left (\sqrt {1-a\,x}-1\right )}^7}}{a^3\,{\left (\frac {a\,x}{{\left (\sqrt {1-a\,x}-1\right )}^2}+1\right )}^4} \]
[In]
[Out]